<template>
	<view>
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src:''
			}
		},
		onLoad(res) {
			var that = this 
			uni.showToast({
				title:'加载中...',
				icon:'loading',
			})
			// that.src = res.url
			uni.getSystemInfo({
				success(e) {
					console.log(e)
					if(e.platform == "android"){
						
						window.location.href = res.url
					}else{
						
						that.src = res.url
					}
				}
			})
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
